<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');

class Aexcel_model extends CI_Model {
	
	function get_users($member_id) {

		if(!empty($member_id)){
			foreach( $member_id as $id => $flag ){

				if( $flag==1 )
					$this->db->or_where('client_id',$id);
				
			}
		}

		$res=$this->db->get("h_client");
		return $res;
    }

    function get_users_fields() {
        $fields = $this->db->list_fields("h_client");

        return $fields;
    }

}

